package com.xh.model.response;

import com.xh.model.enums.MessageEnum;
import lombok.*;

@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UploadResponse {

    private int code;

    private String msg;

    private String url;

    public static UploadResponse ok(String url) {
        return UploadResponse.builder()
                .code(MessageEnum.SUCCESS.getCode())
                .msg(MessageEnum.SUCCESS.getMsg())
                .url(url).build();
    }

}
